﻿@model FieldControlViewModel
@{
	if (Model.IsAdminManage)
	{
		if (Model.IsShow)
		{
			switch (Model.FieldType)
			{
				case FieldType.FileType:
					Write(Html.Raw(Utility.GetFileHtml(Model.FieldValue)));
					break;
				default:
					Write(Html.Raw(Utility.ReplaceEnterNewline(Model.FieldValue)));
					break;
			}
		}
	}
	else
	{
		if (Model.IsShow)
		{
			switch (Model.FieldType)
			{
				case FieldType.FileType:
					Write(Html.Raw(Utility.GetFileHtml(Model.FieldValue)));
					break;
				default:
					Write(Html.Raw(Utility.ReplaceEnterNewline(Model.FieldValue)));
					break;
			}
		}
	}
}
